<?php if(!empty($subvo)){
    $v = $subvo;
    $subvo = '';
}
if(!empty($subsubvo)){
    $v = $subsubvo;
    $subsubvo = '';
}
?>
<div class="viewBox myBox<?php echo $v['id'];?>"<?php if($_SESSION[C('USER_AUTH_KEY')]){?> sortID="<?php echo $v['sort'];?>" modulesID="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>" deleteUrl="<?php echo U('/Admin/Modules/delete',array('id'=>$v['id']));?>" settingUrl="<?php echo U('/Admin/Modules/edit',array('id'=>$v['id']));?>" editUrl="<?php echo U('/Admin/Window/index',array('modules_id' => $v['id'], 'siteid' => __SITEID__, 'tablename'=>'Nav','fieldlist' => 'title,link,target,sort,icon,img_url','map'=>'modules_id,'.$v['id']));?>" isEdit="1"<?php }?>>
  <?php if(!empty($v['dataname'])){
                $v['content'] = $v['dataname'];
                
        }else{
            $v['content'] = unserialize($v['content']);
        }
         ?>
 
  
  
  
  <ul class="nav<?php echo $v['id'];?>">  






<?php $dataList = getNavData($v['id']);foreach($dataList as $key => $n){?>


<li class="drop-menu-effect<?php echo $v['id'].' ';?> <?php if(count($dataList) == $key + 1){echo 'last';}?><?php if($key == 0){echo 'first';}?>"><a href="<?php echo $n['link'];?>" <?php if($n['target'] == 1){?>target="_blank"<?php }?>><span><?php echo $n['title'];?></span></a>



<!-- 子菜单 -->
<?php $subMenu = getNavSubData($v['id'], $n['id']); if($subMenu != ''){?>
<div class="submenu<?php echo $v['id'];?>">

				<div class="menu_news_bg<?php echo $v['id'];?>">

					<div class="menu_news_main<?php echo $v['id'];?>">

						<div class="menu_news_li<?php echo $v['id'];?>">

							<div class="menu_li_txt<?php echo $v['id'];?>">
                            
                            
                            <?php foreach($subMenu as $sk => $sv){?>
                            
                            
								<a href="<?php echo $sv['link'];?>"><?php echo $sv['title'];?></a><br />

								
                                
                            <?php }?>
							</div>

						</div>

						<div class="menu_news_img<?php echo $v['id'];?>"><img style="max-width:100%; height:auto;" src="<?php echo getThumbPath($n['img_url']);?>" /><br /><font><?php echo $n['title'];?></font></div>

						<div style="clear:both; height:0px; overflow:hidden;"></div>

					</div>

				</div>

			</div>
<?php }?>
<!-- 子菜单结束 -->
</li>      
<?php }?>



		


	





	</ul>
  
  
  
  
  
  
  
  <script>
  
  

  
  
 
 
	$(document).ready(function(e) {
        $(".drop-menu-effect<?php echo $v['id'];?>").each(function(){

		var $this = $(this);

		var theMenu = $this.find(".submenu<?php echo $v['id'];?>");

		var tarHeight = theMenu.height();

		theMenu.css({height:0});
		
		
		
		$this.mouseenter(function(e) {
            $(this).addClass("hover_menu<?php echo $v['id'];?>");

				theMenu.stop().show().animate({height:tarHeight},400);
        });
		
		$this.mouseleave(function(e) {
			$(this).removeClass("hover_menu<?php echo $v['id'];?>");

				theMenu.stop().animate({height:0},400,function(){

					$(this).css({display:"none"});

				});
            
        });
		
		

	});
    });
	</script> 
</div>
